#ifndef _USART2_H
#define _USART2_H

#include "sys_hc32f460.h"
#include <hc32f460_usart.h>


void usart2_sleep_enter(void);
void usart2_sleep_exit(void);
void USART2_Init_Inquire(uint32_t baud);
void USART2_Init(uint32_t baud);
void USART2_Init2(uint32_t baud);
void USART2_Send(uint8_t *buf,uint16_t len);
int Usart2_recv(uint8_t* recvBuf);
void Usart2_recv_timeout(uint8_t* recvBuf,uint16_t *recvLen,uint16_t timeout_ms);

#endif
